/*
 * @(#)XfuzzyStringDataType.java        1.0 2009/03/25
 *
 * This file is part of Xfuzzy 3.0, a design environment for fuzzy logic
 * based systems.
 *
 * (c) 2000 IMSE-CNM. The authors may be contacted by the email address:
 *                    xfuzzy-team@imse.cnm.es
 *
 * Xfuzzy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 *
 * Xfuzzy is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

package xfuzzy.xfds;

import xfuzzy.lang.Universe;

/**
 * Clase abstracta que describe un tipo de dato de un atributo
 * 
 * @author Francisco Jos� Moreno Velo
 *
 */
public abstract class XfdsDataType  {

	//----------------------------------------------------------------------------//
	//                            MIEMBROS PRIVADOS                               //
	//----------------------------------------------------------------------------//
		
	//----------------------------------------------------------------------------//
	//                                CONSTRUCTOR                                 //
	//----------------------------------------------------------------------------//

	/**
	 * Constructor
	 */
	public XfdsDataType() {
	}
		
	//----------------------------------------------------------------------------//
	//                             M�TODOS P�BLICOS                               //
	//----------------------------------------------------------------------------//

	/**
	 * Obtiene el valor asociado a la cadena reconocida
	 */
	public abstract double getValue(String v);
	
	/**
	 * Obtiene el rango del tipo de dato
	 * @return
	 */
	public abstract double getRange();
	
	/**
	 * Obtiene el universo de discurso del atributo
	 * @return
	 */
	public abstract Universe getUniverse();
	
	/**
	 * Obtiene el marcador de rango asignado
	 * @return
	 */
	public abstract boolean isRanged();

	/**
	 * Asigna el rango del tipo
	 * @return
	 */
	public abstract void setRange(double min, double max);

	//----------------------------------------------------------------------------//
	//                             M�TODOS PRIVADOS                               //
	//----------------------------------------------------------------------------//


}
